OPTIONS=-std=c++11 -ccbin g++ -m64 \
	-gencode arch=compute_70,code=sm_70 \
	-gencode arch=compute_75,code=sm_75 \
	-gencode arch=compute_80,code=sm_80 \
	-gencode arch=compute_86,code=sm_86 \
	-gencode arch=compute_89,code=sm_89 \
	-gencode arch=compute_90,code=sm_90

CC=nvcc

src=$(wildcard *.cu)
objs=$(patsubst %.cu, %, ${src})

all: $(objs)

$(objs): %: %.cu
	${CC} ${OPTIONS} -o $@ $<

.PHONY: clean
clean:
	rm -rf ${objs}
